import animal  # 导入模块animl
from animal import Animal


class Cat(Animal):
    def __str__(self):
        return f"我是一只猫，名字叫：{self.name}"

    def play(self):
        print(f"{self.name}在玩耍")

    @staticmethod
    def run():
        # 静态方法
        print("动物们都跑起来了")


tom = Cat("汤姆")

tom.play()

Cat.run()

print(tom)
